package com.hns.its.service.driverAdmin;

import com.hns.its.dao.IItsTransportDriverDao;
import com.hns.its.domain.ItsTransportDriverEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

/**
 * 司机业务层实现类
 *
 * @author xuy
 * @email 609784814@qq.com
 * @Date 2017年5月19日 上午10:05:12
 */
@Service
@Transactional(readOnly = true)
public class ItsTransportDriverService {
	private static final Logger logger = LoggerFactory.getLogger(ItsTransportDriverEntity.class);

	@Autowired
	private IItsTransportDriverDao iItsTransportDriverDao;

	/**
	 * 查询
	 *
	 * @param
	 * @return
	 */
	public ItsTransportDriverEntity findDriver(String id) {
		return iItsTransportDriverDao.findOne(id);
	}

	/**
	 * 修改
	 *
	 * @param transportDriverEntity
	 */
	@Transactional(readOnly = false)
	public void updateItsTransportDriverEntity(ItsTransportDriverEntity transportDriverEntity) {
		iItsTransportDriverDao.save(transportDriverEntity);
	}


}
